<?php
require_once('classes/Databases.class.php');

class Login extends Databases{
  protected $sqlFile='com/login/bussines/login.sql.php';
  public function __construct(){
    parent::__construct();
  }
  function getExistUser($username,$password){
    $result=$this->open($this->sqlQueries['get_exist_user'],array($username,$password));
   // print($this->debugedQueries);
    return $result;
  }
  
  function doLogin($username){
    $result=$this->execute($this->sqlQueries['do_login'],array($username));
    return $result;
  }
  
  function doLogout($username){
 // print($username);exit;
    $result=$this->execute($this->sqlQueries['do_logout'],array($username));
    return $result;
  }
}
?>
